package cn.itsource.ymcc.service;

import cn.itsource.ymcc.domain.CourseOrder;
import cn.itsource.ymcc.dto.CourseOrderDto;
import cn.itsource.ymcc.dto.KillCourseOrderCreateParamsDto;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whale.chen
 * @since 2022-07-29
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(CourseOrderDto dto);

    void saveOrderItems(CourseOrder courseOrder);

    CourseOrder selectOrderByOrderNo(String orderNo);

    void payOrder(CourseOrder courseOrder);

    void cancelOrder(String orderNo);

    String killPlaceOrder(KillCourseOrderCreateParamsDto dto);
}
